package cc.mrbird.system.domain;

import cc.mrbird.common.annotation.ExportConfig;
import cn.afterturn.easypoi.excel.annotation.Excel;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author dinian
 * @Date 2019-03-04
 */
@Table(name = "visit_student")
public class VisitStudent implements Serializable {

    @Id
    @GeneratedValue(generator = "JDBC")
    @Column(name = "id")
    private Long id;

    public String getGraduateHigh() {
        return graduateHigh;
    }

    public void setGraduateHigh(String graduateHigh) {
        this.graduateHigh = graduateHigh;
    }

    @Excel(name = "毕业高中")
    @Column(name = "graduateHigh")
    @NotBlank(message = "该字段不能为空")
    @ExportConfig(value = "毕业高中")
    private String graduateHigh;

    @Excel(name = "姓名")
    @Column(name = "name")
    @NotBlank(message = "该字段不能为空")
    @ExportConfig(value = "姓名")
    private String name;

    @Excel(name = "老师/学生")
    @Column(name = "status")
    @NotBlank(message = "该字段不能为空")
    @ExportConfig(value = "老师/学生")
    private String status;

    @Excel(name = "联系电话")
    @Column(name = "telephone")
    @NotBlank(message = "该字段不能为空")
    @ExportConfig(value = "联系电话")
    private String telephone;

    @Excel(name = "备注")
    @Column(name = "note")
    @ExportConfig(value = "备注")
    private String note;

    @Column(name = "username")
    @ExportConfig(value = "操作人")
    private String username;

    @Column(name = "createdTime")
    @ExportConfig(value = "创建时间", convert = "c:cc.mrbird.common.util.poi.convert.TimeConvert")
    private Date createdTime;

    @Column(name = "updatedTime")
    @ExportConfig(value = "修改时间", convert = "c:cc.mrbird.common.util.poi.convert.TimeConvert")
    private Date updatedTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }
}
